package com.expmanage.actions.utils;

import java.io.*;

import org.apache.ibatis.io.*;
import org.apache.ibatis.session.*;

public class DatabaseConfigure {
	public static SqlSessionFactory sqlSessionFactory;
	public static Reader reader;
	static {
		try {
			reader = Resources.getResourceAsReader("Configuration.xml");
			sqlSessionFactory = new SqlSessionFactoryBuilder().build(reader);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
